using System;
using System.Web;
using Sedna.Core.Controller;
using Sedna.Core.Controller.Common;

namespace Sedna.Core.Controls.Actions
{
	/// <summary>
	/// Summary description for ValidateIntegerAction.
	/// </summary>
	public class ValidateIntegerAction: AbstractValidationAction
	{
		protected override bool Validate(IExecutionContext executionContext, string validationValue)
		{
			try
			{
				Int32.Parse(validationValue, principalWrapper.Culture);
				return true;
			}
			catch
			{
				return false;
			}
		}
	}
}
